package com.sso.dao;

import java.util.List;
import java.util.Vector;

import com.sso.model.CommonModel;

public interface EntityDao {  
    public List<Object> createQuery(final String queryString, final int thePage, final int pageSize);
    public List<Object> createQuery(final String queryString, final Vector<Object> vector, final int thePage, final int pageSize);
    public List<Object> createQuery(final String queryString, final Object obj, final int thePage, final int pageSize);
    public List<Object> queryNativeSQL(final String sqlString, final Object propertyBean, final int thePage, final int pageSize);
    //public List<Object> findByExample(final Object model);
    public List<Object> findByExample(final Class cModel, final Object model);
    public Object save(final Object model);
    public void update(final Object model);
    public void delete(final Object model);
    public Long callProc(final String proc,final List<Object> paramList,final int outIndex, final int type);
    public int executeSQL(final String sql);
    public List<Object> queryNativeSQLAsList(final String sql, final Object obj, final int thePage, final int pageSize);
    public Long callProc(final String proc,final List<String> paramList);
    public int executeSQL(final String sql, final Object obj);
}
